#include "stdafx.h"
#include "CalendarExample.h"

void CalendarExample::loadFile(const String& fileName, FCView *view){
    FCUIXml::loadFile(fileName, view);
    //获取第二页
    FCTabPage *tabPage = getTabPage(L"TabPage2");
    FCCalendar *calendar = new FCCalendar();
    FCPoint point = {100,100};
    calendar->setLocation(point);
    FCSize size = {250,300};
    calendar->setSize(size);
    tabPage->addView(calendar);
}
